package main

import (
	"fmt"
	"go-fitty/internal/dao"
	"go-fitty/internal/model"
)

func main() {

	userDao := new(dao.UserDao)

	//user := model.User{Username:"朱八戒",Salt:"zbjwi22rh20w0275"}
	//userDao.Insert(&user)

	user2 := model.User{Id: 2, Password: "m7fh10fz10gfy2"}
	userDao.Update(&user2)

	user3 := userDao.FindOne(2)
	fmt.Println(user3.Password)

	fmt.Println(userDao.Delete(2)) // 如果记录被更改为deleted，更新操作将不会成功
}
